package com.lsl.learn.springcloud.dao;

import com.lsl.learn.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName DeptDao
 * @Description TODO
 * @Author LSL
 * @Date 2019/8/16 22:13
 * @Version 1.0
 * @Email lsl.yx@foxmail.com
 **/
@Mapper  // @Mapper 属于mybatis的注解
//@Repository // @Repository 属于spring的注解
@Component
public interface DeptDao {

    boolean addDept(Dept dept);

    Dept findById(Long id);

    List<Dept> findAll();

}
